Skip to content

Draft API: clean up Go generation and test wiring - #331

Draft
stephanos wants to merge 6 commits into
api-nextfrom
api-next-stephanos
Draft

stephanos wants to merge 6 commits into
api-nextfrom
api-next-stephanos

Conversation

@stephanos

@stephanos stephanos commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Small fixes to proto exclusions, proxy generator test discovery, toolchain setup, and generated-file attributes.

The remaining draft API changes are in #343.

  1. 146115b2 Adds tests that protogen --exclude matches paths relative to --root and at path-component boundaries. Excluding temporal/api_next should still allow temporal/api_next_other to be compiled.
  2. f78b8c92 Passes the exact list of .proto files discovered after applying exclusions to protoc. A directory glob could pull an excluded file back in when a sibling proto was included.
  3. 57185797 Excludes api_next/ and the helper fixtures from stable Go post-processing. The stable pass walks the repository root and could rewrite draft bindings and fixture enum constants.
  4. 7bd42d7c Runs the nested proxy generator suite from make test and skips the draft proxy test when its descriptor is missing. The root module's test run does not discover tests in nested modules.
  5. bdca8848 Pins the proto update workflow to the protoc series used by CI. Both workflows should generate the same snapshot from the same inputs.
  6. 51df16bc Marks the entire api_next tree as generated. GitHub can collapse the snapshot by default so reviewers can focus on its source inputs.

stephanos and others added 4 commits November 23, 2026 10:55
What
Adds tests that `protogen --exclude` matches paths relative to `--root` and at path-component boundaries.

Why
Excluding `temporal/api_next` should still allow `temporal/api_next_other` to be compiled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Passes the exact list of `.proto` files discovered after applying exclusions to protoc.

Why
A directory glob could pull an excluded file back in when a sibling proto was included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Excludes `api_next/` and the helper fixtures from stable Go post-processing.

Why
The stable pass walks the repository root and could rewrite draft bindings and fixture enum constants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Runs the nested proxy generator suite from `make test` and skips the draft proxy test when its descriptor is missing.

Why
The root module's test run does not discover tests in nested modules.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stephanos
stephanos force-pushed the api-next-stephanos branch 5 times, most recently from 3c71145 to 7413fec Compare November 24, 2026 00:08
stephanos and others added 2 commits November 24, 2026 19:28
What
Pins the proto update workflow to the protoc series used by CI.

Why
Both workflows should generate the same snapshot from the same inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
Marks the entire `api_next` tree as generated.

Why
GitHub can collapse the snapshot by default so reviewers can focus on its source inputs.
@stephanos stephanos changed the title Draft APIs: share classification fixtures and check api_next against stable Draft API: clean up Go generation and test wiring Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant